/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package MailServer;

import java.io.IOException;
import java.net.UnknownHostException;

/**
 *
 * @author lailiaidi
 */
public class MainMailServer {

    public static void main(String[] args) throws UnknownHostException, IOException {
        final int obIntServerPort = 2525;
        final String obStrServerAddress = "localhost";
        final int obIntMaxRequest = 10;
        try {
            System.out.format("Starting SMTP server at %s on port %s\n\n", obStrServerAddress, obIntServerPort);
            SmtpServer server = new SmtpServer(obStrServerAddress, obIntServerPort, obIntMaxRequest);

            server.start();
        } catch (Exception e) {
        }
    }
}
